module.exports = function () {
    let dataSource = {};
    return function (type) {
        if (!dataSource[type]) {
            dataSource[type] = 1;
            return 1
        } else {
            dataSource[type]++;
            return dataSource[type]
        }
    }
};